package day2018_lab02.test14;
//统计他的年收入和学费，如果收入减去学费不足2000元，
// 则输出“You  need a loan!”（需要贷款）的信息，
// 否则输出“You income is enough！”信息。
public class Test14 {
    public static void main(String[] args) {
        Graduate zhangssan= new Graduate();
        zhangssan.name= "何猷君";
        zhangssan.age=22;
        zhangssan.sex ="男";
        System.out.println( zhangssan.toString());

       zhangssan.fee = 4440;
       zhangssan.pay= 3000;
       if (zhangssan.pay-zhangssan.fee>2000){
           System.out.println("YOUR INCOME IS ENOUGH");
       }else{
           System.out.println(" you need a loan");
       }
    }
}
